/**
 * Created by John on 2016/4/27.
 */
//只允许输入数字
$("input[name='number']").on("input",function(){
    if(! /^\d+$/ig.test(this.value)){
        return this.value=this.value.replace(/\D/gi,'')
    }
});
